package com.start.workflow.core.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.start.workflow.act.StartActMyHandlerAuthTask;
import com.start.workflow.entity.StartActBusinessEntity;
import com.start.workflow.vo.StartActBusinessVo;

public interface StartActBusinessService extends IService<StartActBusinessEntity> {
    StartActBusinessEntity getOneByProcessInstanceId(String processInstanceId);

    Page<StartActBusinessVo> pageBusiness(Page<StartActBusinessVo> page, Wrapper<StartActBusinessVo> wrapper);

    /**
     * 查询参与，或待办的流程任务节点
     *
     * @param page
     * @param queryWrapper
     * @return
     */
    Page<StartActMyHandlerAuthTask> pageMyNodeApply(Page<StartActMyHandlerAuthTask> page, Wrapper<StartActMyHandlerAuthTask> queryWrapper);



    /**
     * 查询我的申请
     *
     * @param page
     * @param wrapper
     * @return
     */
    Page<StartActBusinessEntity> pageMyBusiness(Page<StartActBusinessEntity> page, QueryWrapper<StartActBusinessEntity> wrapper);

}
